﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityPWS
{
    public class ApiDbContext:DbContext
    {
        public ApiDbContext(DbContextOptions<ApiDbContext> opt) : base(opt)
        {

        }

        /// <summary>
        /// 镇辖区登记人员信息表（People）
        /// </summary>
        public DbSet<People> peoples { get; set; }

        /// <summary>
        /// 职工信息表（Employee）
        /// </summary>
        public DbSet<Employee> employees { get; set; }

        /// <summary>
        /// 走访记录表（Interview）
        /// </summary>
        public DbSet<Interview> interviews { get; set; }
    }
}
